home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 June / MacFormat 25.iso / Shareware City / Developers / Tools Plus 2.5.3 Evaluation Kit / Tools Plus 2.5.3 / Tools Plus 2.5.3 for C⁄C++ / ToolsPlus.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-12  |  1.2 KB  |  41 lines  |  [TEXT/KAHL]

  1. /*  Tools Plus (Version 2.5.3) THINK C supplemental file
  2.  *  Copyright (C) 1989-95 Water’s Edge Software
  3.  *
  4.  *  This source file must be compiled as part of a project containing Tools Plus.
  5.  *  It provides access to the SystemVersion routine, which produces a double
  6.  *    whose format is consistent with your compiler settings (standard, native, or
  7.  *    for a math co-processor).
  8.  */
  9.  
  10.  
  11.  
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15.  
  16.  
  17.  
  18. /* PRIVATE:    This function obtains the System file's version number as an integer for the    */
  19. /*            SystemVersion function.                                                            */
  20.      pascal short _SYSV(void);
  21.      
  22.      
  23.  
  24.  
  25.  
  26.  
  27. /*    The SystemVersion function returns the System File's version as an 'double' type        */
  28. /*    floating-point number.  This source code, when compiled, will produce an appropriate    */
  29. /*    'double' type floating-point number whose format is determined by your compiler's        */
  30. /*    settings (ie: standard, native, compiled for a math co-processor, or not).                */
  31.     pascal double SystemVersion(void);                // (Prototype)
  32.     pascal double SystemVersion(void)
  33.      {
  34.      return (_SYSV() / 100.0);                        /* Get System Version and convert to a    */
  35.      }                                                /* extended type.                        */
  36.  
  37.  
  38.  
  39. #ifdef __cplusplus
  40. }
  41. #endif